﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Scripting.Hosting;
using IronPython.Hosting;



namespace Testing
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int fede = 0;
        int agus = 0;
        private void button1_Click(object sender, EventArgs e)
        {
            this.fede = 0;
            this.agus = 0;
            this.txtFede.Text = fede.ToString();
            this.txtAgus.Text = agus.ToString();

            //var ironPythonRuntime = Python.CreateRuntime();
            //dynamic loadIPython = ironPythonRuntime.UseFile("Agente.py");
            //var h = loadIPython.lista();
            //string a = h[0][0];
            //MessageBox.Show(a);
            //Lib.PythonBoardBuilder b = new Lib.PythonBoardBuilder();
            //Lib.Gui g = new Lib.Gui(420, 360, b.BuildBoard());
            //g.Show();
            //b.BuildBoard();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.txtFede.Text = fede.ToString();
            this.txtAgus.Text = agus.ToString();
        }

        private void btnFede_Click(object sender, EventArgs e)
        {
            this.fede++;
            this.txtFede.Text = this.fede.ToString();
        }

        private void btnAgus_Click(object sender, EventArgs e)
        {
            this.agus++;
            this.txtAgus.Text = this.agus.ToString();;
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            //var ironPythonRuntime = Python.CreateRuntime();
            //dynamic loadIPython = ironPythonRuntime.UseFile("Agente.py");
            //var h = loadIPython.lista();
            //string a = h[0][0];
            //MessageBox.Show(a);
            Lib.PythonBoardBuilder b = new Lib.PythonBoardBuilder();
            Lib.Gui g = new Lib.Gui(420, 360, b.BuildBoard());
            g.Show();
            b.BuildBoard();
        }
    }
}
